package org.sbbs.axon.todo.commond;

import javax.validation.constraints.NotNull;
import org.axonframework.commandhandling.TargetAggregateIdentifier;

public class ModifyTaskTitleCommand {

    @TargetAggregateIdentifier
    private final String id;

    @NotNull
    private final String title;

    public ModifyTaskTitleCommand(String id, String title) {
        this.id = id;
        this.title = title;
    }

    public String getId() {
        return id;
    }

    public String getTitle() {
        return title;
    }

}
